﻿using System;
using UnityEngine;
using UnityEngine.EventSystems;

namespace Studio
{
	// Token: 0x020004C6 RID: 1222
	public class GuideSelect : GuideBase, IPointerClickHandler, IEventSystemHandler
	{
		// Token: 0x17000387 RID: 903
		// (set) Token: 0x06001F26 RID: 7974 RVA: 0x000C2668 File Offset: 0x000C0868
		public Color color
		{
			set
			{
				this.colorNormal = base.ConvertColor(value);
				this.colorHighlighted = new Color(value.r, value.g, value.b, 1f);
			}
		}

		// Token: 0x17000388 RID: 904
		// (get) Token: 0x06001F27 RID: 7975 RVA: 0x000C269C File Offset: 0x000C089C
		// (set) Token: 0x06001F28 RID: 7976 RVA: 0x000C26A4 File Offset: 0x000C08A4
		public TreeNodeObject treeNodeObject { get; set; }

		// Token: 0x06001F29 RID: 7977 RVA: 0x000C26B0 File Offset: 0x000C08B0
		public void OnPointerClick(PointerEventData _eventData)
		{
			if (this.treeNodeObject != null)
			{
				this.treeNodeObject.OnClickSelect();
			}
			else
			{
				if (!Singleton<GuideObjectManager>.IsInstance())
				{
					return;
				}
				Singleton<GuideObjectManager>.Instance.selectObject = base.guideObject;
			}
		}

		// Token: 0x06001F2A RID: 7978 RVA: 0x000C26F0 File Offset: 0x000C08F0
		private void Awake()
		{
			base.Start();
			this.treeNodeObject = null;
		}

		// Token: 0x06001F2B RID: 7979 RVA: 0x000C2700 File Offset: 0x000C0900
		public override void Start()
		{
			base.colorNow = this.colorNormal;
		}
	}
}
